Skip to content

Make Python operations stricter about types #1708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 3, 2024
Merged

Conversation

Fidget-Spinner
Copy link
Contributor

Description

Fixes source-academy/py-slang#39

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How to test

The example given in the issue should throw error now.

Checklist

  • I have tested this code

@RichDom2185
Copy link
Member

The tests seem to be failing?

@Fidget-Spinner
Copy link
Contributor Author

I think the tests should pass now

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, just the one comment, thanks!

@coveralls
Copy link

coveralls commented Jun 2, 2024

Pull Request Test Coverage Report for Build 9338381529

Details

  • 14 of 96 (14.58%) changed or added relevant lines in 1 file are covered.
  • 35 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.6%) to 81.532%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/stdlib/pylib.ts 14 96 14.58%
Files with Coverage Reduction New Missed Lines %
src/stdlib/pylib.ts 35 44.2%
Totals Coverage Status
Change from base Build 8967380994: -0.6%
Covered Lines: 10933
Relevant Lines: 13042

💛 - Coveralls

RichDom2185
RichDom2185 previously approved these changes Jun 2, 2024
Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@RichDom2185 RichDom2185 dismissed their stale review June 2, 2024 01:41

Failed tests

@Fidget-Spinner
Copy link
Contributor Author

I need an approving review to merge it seems.

@RichDom2185
Copy link
Member

I need an approving review to merge it seems.

The CI turned out to fall, that's why I dismissed my approval

@Fidget-Spinner
Copy link
Contributor Author

@RichDom2185 CI passes now.

Copy link
Member

@RichDom2185 RichDom2185 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@RichDom2185 RichDom2185 merged commit 05287c5 into master Jun 3, 2024
3 of 4 checks passed
@RichDom2185 RichDom2185 deleted the stricter-pymod branch June 3, 2024 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

String conversion too liberal
3 participants